
package net.hn.hnms.biz.material.request;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Table;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * Author: ly
 * 物资出库表
 */
@Data
@NoArgsConstructor
@ExcelIgnoreUnannotated
@EqualsAndHashCode(callSuper = false)
@Table(name = "stock_out")
public class StockOutReq extends BaseReq {
    @ApiModelProperty(value = "主键ID")
    private String stockOutId;
    @ApiModelProperty(value = "矿编码")
    private String mineCode;
    @ApiModelProperty(value = "矿名称")
    private String mineName;
    @ApiModelProperty(value = "出库单号")
    private String recordCode;
    @ApiModelProperty(value = "物资编码")
    private String materialCode;
    @ApiModelProperty(value = "物资名称")
    private String materialName;
    @ApiModelProperty(value = "规格型号")
    private String specificationModel;
    @ApiModelProperty(value = "出库数量")
    private Integer quantity;
    @ApiModelProperty(value = "使用单位")
    private String department;
    @ApiModelProperty(value = "仓库名称")
    private String stockName;
    @ApiModelProperty(value = "仓库编号")
    private String stockCode;
    @ApiModelProperty(value = "出库状态")
    private String state;
    @ApiModelProperty(value = "出库类型")
    private String outType;
    @ApiModelProperty(value = "出库用途")
    private String useTo;
    @ApiModelProperty(value = "出库时间")
    @JsonFormat(
            pattern = "yyyy-MM-dd"
    )
    private Date dateTime;
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @NotNull(message = "创建时间不能为空")
    private Date createTime;
    @ApiModelProperty(value = "最后修改时间")
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @NotNull(message = "最后修改时间不能为空")
    private Date updateTime;
    @ApiModelProperty(value = "删除标识 0正常 1删除")
    @NotBlank(message = "删除标识 0正常 1删除不能为空")
    private String delFlag;
    @ApiModelProperty(value = "物资类别")
    private String materialType;
}









